import requests

url = 'https://www.baidu.com/'
r = requests.get(url)

##a = r.headers.values() #列出主键内容

a = r.headers.items()

##print(a)

for each in a:
    print(each)
